home *** CD-ROM | disk | FTP | other *** search
/ GameSpot.it / GameSpot Italia (2001).bin / demo / severancedemo / data1.cab / Program_Files / Maps / Ragnar_M2 / TalkingKnights.py < prev    next >
Text File  |  2000-10-13  |  2KB  |  77 lines

  1. import def_class
  2. from math import pow
  3. import Bladex
  4. import pdb
  5. import Reference
  6. import EnemyTypes
  7. import Sparks
  8. import Enm_Def
  9. import Actions
  10. import pocimac
  11. import Sounds
  12.  
  13. true = 1
  14. false = 0
  15.  
  16. #######################################################
  17. # Define the talking knight class
  18. #######################################################
  19.  
  20. #Bladex.LoadSampledAnimation("..\\..\\Anm\\Tkn_speak01.bmv","Tkn_speak01",0,"Knight_Traitor")
  21. #Bladex.LoadSampledAnimation("..\\..\\Anm\\Tkn_speak02.bmv","Tkn_speak02",0,"Knight_Traitor")
  22.  
  23.  
  24. #######################################################
  25. # Create the first knight
  26. # (named after Eric Idle playing JAILER'S ASSISTANT in Life of Brian)
  27. #######################################################
  28.  
  29. ### tiene la LLAVE de la capilla
  30.  
  31. sword1=Bladex.CreateEntity("RagnarEricsSword","Garrote",0,0,0,"Weapon")
  32. shield1=Bladex.CreateEntity("RagnarEricsShield","Escudo2",0,0,0)
  33. Sparks.MakeShield("RagnarEricsShield")
  34.  
  35. knt1=Bladex.CreateEntity("Eric","Knight_Traitor",-91610, -8748, -7916,"Person")
  36. knt1.Level=2
  37. knt1.Angle=4.4
  38. Actions.TakeObject(knt1.Name,"RagnarEricsSword")
  39. Actions.TakeObject(knt1.Name,"RagnarEricsShield")
  40. Actions.TakeObject("Eric","Llavep2")
  41.  
  42. knt1.ActionAreaMin=pow(2,0)
  43. knt1.ActionAreaMax=pow(2,1)
  44. knt1.Data = def_class.TalkingKnight (knt1)
  45. knt1.Data.JoinGroup("Eric", "Talking Knights")
  46. knt1.SetOnFloor()
  47.  
  48.  
  49. #######################################################
  50. # Create the second knight
  51. # (named after Terry Gilliam playing JAILER in Life of Brian)
  52. #######################################################
  53.  
  54. sword2=Bladex.CreateEntity("RagnarTerrysSword","Gladius",0,0,0,"Weapon")
  55. shield2=Bladex.CreateEntity("RagnarTerrysShield","Escudo5",0,0,0)
  56. Sparks.MakeShield("RagnarTerrysShield")
  57.  
  58. potion1=Bladex.CreateEntity("TerrysPotion","Pocima25",0,0,0)
  59. potion1.Static=0
  60. potion1.Solid=0
  61. potion1.Scale=1.220190
  62. pocimac.CreatePotion("TerrysPotion")
  63.  
  64. knt2=Bladex.CreateEntity("Terry","Knight_Traitor",-86500, -8748, -7250,"Person")
  65. knt2.Level=2
  66. knt2.Angle=1.5
  67. Actions.TakeObject(knt2.Name,"RagnarTerrysSword")
  68. Actions.TakeObject(knt2.Name,"RagnarTerrysShield")
  69. Actions.TakeObject(knt1.Name,"TerrysPotion")
  70.  
  71. knt2.ActionAreaMin=pow(2,0)
  72. knt2.ActionAreaMax=pow(2,1)
  73. knt2.Data = def_class.TalkingKnight (knt2)
  74. knt2.Data.JoinGroup("Terry", "Talking Knights")
  75. knt2.SetOnFloor()
  76. Reset()
  77.